emacs.git
14 years agoMerge from trunk.
Paul Eggert [Wed, 24 Aug 2011 21:20:36 +0000 (14:20 -0700)]
Merge from trunk.

14 years agoMore uses of `error' and `warning' faces.
Juri Linkov [Wed, 24 Aug 2011 18:09:18 +0000 (21:09 +0300)]
More uses of `error' and `warning' faces.

* lisp/battery.el (battery-update): Use the face `error' instead of
`font-lock-warning-face'.

* lisp/ibuffer.el (ibuffer-marked-face): Change default face from
`font-lock-warning-face' to `warning'.
(ibuffer-deletion-face): Change default face from
`font-lock-type-face' to `error'.

* lisp/proced.el (proced-marked): Inherit from `error' instead of
`font-lock-warning-face'.

14 years ago* lisp/faces.el (success): Change face color from "Green3" to
Juri Linkov [Wed, 24 Aug 2011 18:01:40 +0000 (21:01 +0300)]
* lisp/faces.el (success): Change face color from "Green3" to
"ForestGreen" on light background.

14 years agoRename quit-restore-window into quit-window.
Chong Yidong [Wed, 24 Aug 2011 17:38:46 +0000 (13:38 -0400)]
Rename quit-restore-window into quit-window.

* lisp/window.el (quit-window): Renamed from quit-restore-window.  Use
same arglist as old quit-window.
(frame-auto-delete): Doc fix.

* lisp/view.el (view-mode-exit): Use quit-window.

14 years agoFix cursor movement in R2L text within L2R paragraphs.
Eli Zaretskii [Wed, 24 Aug 2011 15:51:56 +0000 (18:51 +0300)]
Fix cursor movement in R2L text within L2R paragraphs.

 src/xdisp.c (set_cursor_from_row): Consider candidate row a win if its
 glyph represents a newline and point is on that newline.  Fixes cursor
 positioning on the newline at EOL of R2L text within L2R
 paragraph, and vice versa.
 (try_cursor_movement): Check continued rows, in addition to
 continuation rows.  Fixes unwarranted scroll when point enters a
 continued line of R2L text within an L2R paragraph, or vice versa.
 (cursor_row_p): Consider the case of point being equal to
 MATRIX_ROW_END_CHARPOS.  Prevents cursor being stuck when moving
 from the end of a short line to the beginning of a continued line
 of R2L text within L2R paragraph.
 (RECORD_MAX_MIN_POS): For max_pos, use IT_CHARPOS even for
 composed characters.

14 years agoFix current-bidi-paragraph-direction and its doc.
Eli Zaretskii [Wed, 24 Aug 2011 11:49:54 +0000 (14:49 +0300)]
Fix current-bidi-paragraph-direction and its doc.

 src/xdisp.c (Fcurrent_bidi_paragraph_direction): For unibyte
 buffers, return left-to-right.
 doc/lispref/display.texi (Bidirectional Display): Document return value in
 buffers that are not bidi-reordered for display, and in unibyte
 buffers.

14 years ago"C-s M-p" brings the tip of the search ring.
Juri Linkov [Wed, 24 Aug 2011 09:40:58 +0000 (12:40 +0300)]
"C-s M-p" brings the tip of the search ring.

* lisp/isearch.el (isearch-ring-adjust1): Start visiting previous
search strings from the index 0 (-1 + 1) instead of 1 (0 + 1).
(isearch-repeat, isearch-edit-string): Call `isearch-ring-adjust1'
for empty search string (when the last search string is reused
automatically) to adjust the isearch ring to the last element and
prepare the correct index for further M-p commands.

14 years agoMinor changes in bidi.c.
Eli Zaretskii [Wed, 24 Aug 2011 07:46:00 +0000 (10:46 +0300)]
Minor changes in bidi.c.

 src/bidi.c (bidi_check_type): Use xassert.
 (bidi_cache_iterator_state): Update the disp_pos and disp_prop_p
 members.

14 years agointernational/ucs-normalize.el: If decomposition property of CHAR is the default...
Kenichi Handa [Wed, 24 Aug 2011 07:35:29 +0000 (16:35 +0900)]
international/ucs-normalize.el: If decomposition property of CHAR is the default one (i.e. a list of CHAR itself), treat it as nil.

14 years agomerge trunk
Kenichi Handa [Wed, 24 Aug 2011 07:35:02 +0000 (16:35 +0900)]
merge trunk

14 years agointernational/ucs-normalize.el: If decomposition property of CHAR is the default...
Kenichi Handa [Wed, 24 Aug 2011 07:33:55 +0000 (16:33 +0900)]
international/ucs-normalize.el: If decomposition property of CHAR is the default one (i.e. a list of CHAR itself), treat it as nil.

14 years agomerge
Kenichi Handa [Wed, 24 Aug 2011 07:31:56 +0000 (16:31 +0900)]
merge

14 years ago* etc/refcards/refcard.tex: Add a few more commands. (tiny change)
Steve Chapel [Wed, 24 Aug 2011 07:31:35 +0000 (00:31 -0700)]
* etc/refcards/refcard.tex: Add a few more commands.  (tiny change)

14 years ago* lisp/mpc.el (mpc--proc-filter): Don't signal mpc-proc-error since signals
Stefan Monnier [Wed, 24 Aug 2011 01:55:10 +0000 (21:55 -0400)]
* lisp/mpc.el (mpc--proc-filter): Don't signal mpc-proc-error since signals
from process filters aren't reliably transmitted to the surrounding
accept-process-output.
(mpc-proc-check): New function.
(mpc-proc-sync): Use it

14 years ago* lisp/emacs-lisp/eieio.el (eieio-defmethod, eieio-defgeneric):
Stefan Monnier [Tue, 23 Aug 2011 18:53:51 +0000 (14:53 -0400)]
* lisp/emacs-lisp/eieio.el (eieio-defmethod, eieio-defgeneric):
Add compatibility functions.

14 years agocus-start.el: Add :version tag to bidi-paragraph-direction.
Eli Zaretskii [Tue, 23 Aug 2011 15:53:46 +0000 (18:53 +0300)]
cus-start.el: Add :version tag to bidi-paragraph-direction.

14 years agocus-start.el: Add entry for bidi-paragraph-direction.
Eli Zaretskii [Tue, 23 Aug 2011 15:21:19 +0000 (18:21 +0300)]
cus-start.el: Add entry for bidi-paragraph-direction.

14 years agoFollowup for character properties in revno 105542.
Eli Zaretskii [Tue, 23 Aug 2011 14:45:14 +0000 (17:45 +0300)]
Followup for character properties in revno 105542.

 src/bidi.c (bidi_get_type): Abort if we get zero as the bidi type of
 a character.
 admin/unidata/unidata-gen.el (unidata-prop-alist): Update the default
 values of bidi-class according to DerivedBidiClass.txt from the
 latest UCD.
 lisp/international/uni-bidi.el: Regenerated.
 doc/lispref/nonascii.texi (Character Properties): Document the values for
 unassigned codepoints.

14 years ago* src/nsfont.m (ns_otf_to_script): Fix typo.
Chong Yidong [Tue, 23 Aug 2011 14:41:07 +0000 (10:41 -0400)]
* src/nsfont.m (ns_otf_to_script): Fix typo.

14 years agoFix default values of character properties.
Kenichi Handa [Tue, 23 Aug 2011 11:58:39 +0000 (20:58 +0900)]
Fix default values of character properties.

14 years agomerge trunk
Kenichi Handa [Tue, 23 Aug 2011 11:49:03 +0000 (20:49 +0900)]
merge trunk

14 years agoFix default values of character properties.
Kenichi Handa [Tue, 23 Aug 2011 11:48:07 +0000 (20:48 +0900)]
Fix default values of character properties.

14 years agoFix bug #8874 with recentering and header line under scroll-conservatively.
Eli Zaretskii [Tue, 23 Aug 2011 10:35:47 +0000 (13:35 +0300)]
Fix bug #8874 with recentering and header line under scroll-conservatively.

 src/xdisp.c (redisplay_window): When computing centering_position,
 account for the height of the header line.

14 years agoFix message in help-window-setup (Bug#9341).
martin rudalics [Tue, 23 Aug 2011 09:31:54 +0000 (11:31 +0200)]
Fix message in help-window-setup (Bug#9341).

* help.el (help-window-setup): Fix message displayed when other
window is reused.  (Bug#9341)

14 years agoFix crashes with completion and composed characters.
Eli Zaretskii [Tue, 23 Aug 2011 08:38:29 +0000 (11:38 +0300)]
Fix crashes with completion and composed characters.

 src/dispnew.c (buffer_posn_from_coords): Use buf_charpos_to_bytepos
 instead of CHAR_TO_BYTE.  Fixes a crash when a completion
 candidate is selected by the mouse, and that candidate has a
 composed character under the mouse.

14 years agoFix pos-visible-in-window-p for zero-column composed character.
Eli Zaretskii [Tue, 23 Aug 2011 07:01:25 +0000 (10:01 +0300)]
Fix pos-visible-in-window-p for zero-column composed character.

 src/xdisp.c (x_produce_glyphs): Set it->nglyphs to 1.  Fixes pixel
 coordinates reported by pos-visible-in-window-p for a composed
 character in column zero.

14 years ago* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
Stefan Monnier [Tue, 23 Aug 2011 05:25:17 +0000 (01:25 -0400)]
* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
* lisp/pcomplete.el (pcomplete-quote-argument): Fix thinko.

14 years ago* lisp/pcomplete.el (pcomplete-parse-comint-arguments): Fix inf-loop.
Stefan Monnier [Tue, 23 Aug 2011 05:21:09 +0000 (01:21 -0400)]
* lisp/pcomplete.el (pcomplete-parse-comint-arguments): Fix inf-loop.
Mark obsolete.
* lisp/shell.el (shell-parse-pcomplete-arguments): New function.
(shell-completion-vars): Use it instead.

14 years ago* src/cmds.c (Fself_insert_command): Mention post-self-insert-hook.
Stefan Monnier [Tue, 23 Aug 2011 03:09:59 +0000 (23:09 -0400)]
* src/cmds.c (Fself_insert_command): Mention post-self-insert-hook.

14 years ago* lisp/progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
Stefan Monnier [Mon, 22 Aug 2011 22:10:21 +0000 (18:10 -0400)]
* lisp/progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
strings and comments.

14 years ago* lisp/emacs-lisp/debug.el (debug-arglist): New function.
Stefan Monnier [Mon, 22 Aug 2011 21:16:46 +0000 (17:16 -0400)]
* lisp/emacs-lisp/debug.el (debug-arglist): New function.
(debug-convert-byte-code): Use it.  Handle lexical byte-codes.
(debug-on-entry-1): Handle interpreted closures.

14 years agoFix vertical cursor motion under bidi on auto-composed characters.
Eli Zaretskii [Mon, 22 Aug 2011 17:00:40 +0000 (20:00 +0300)]
Fix vertical cursor motion under bidi on auto-composed characters.

 src/xdisp.c (BUFFER_POS_REACHED_P): If this is a composition,
 consider it a hit if to_charpos is anywhere in the range of the
 composed buffer positions.

14 years ago* etc/compilation.txt: Add more samples of output and non-output switches (bug#9319).
Juri Linkov [Mon, 22 Aug 2011 13:08:35 +0000 (16:08 +0300)]
* etc/compilation.txt: Add more samples of output and non-output switches (bug#9319).

14 years agoBack out inadvertent changes in minibuffer.el.
Eli Zaretskii [Mon, 22 Aug 2011 12:58:37 +0000 (15:58 +0300)]
Back out inadvertent changes in minibuffer.el.

14 years ago* lisp/progmodes/compile.el (compilation-mode-font-lock-keywords):
Juri Linkov [Mon, 22 Aug 2011 12:46:45 +0000 (15:46 +0300)]
* lisp/progmodes/compile.el (compilation-mode-font-lock-keywords):
Revert regexp that highlights output switches to its old
pre-2010-10-28 value and remove one `?' from it (bug#9319).

14 years ago* lisp/progmodes/grep.el (grep-process-setup): Use `buffer-modified-p'
Juri Linkov [Mon, 22 Aug 2011 09:54:38 +0000 (12:54 +0300)]
* lisp/progmodes/grep.el (grep-process-setup): Use `buffer-modified-p'
to check for empty output.

14 years agoFix some word/symbol classifications in scheme-mode's syntax table.
Chong Yidong [Mon, 22 Aug 2011 03:38:30 +0000 (23:38 -0400)]
Fix some word/symbol classifications in scheme-mode's syntax table.

* lisp/progmodes/scheme.el (scheme-mode-syntax-table): Don't use
symbol-constituent as the default, as that stops font-lock from
working properly.

14 years agoFix animated gif segfault and frame clearing bug.
Chong Yidong [Mon, 22 Aug 2011 02:34:23 +0000 (22:34 -0400)]
Fix animated gif segfault and frame clearing bug.

* src/image.c (gif_load): Don't assume that each subimage has the same
dimensions as the base image.  Handle disposal method that is
"undefined" by the gif spec.

14 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 22:10:49 +0000 (22:10 +0000)]
Merge changes made in Gnus trunk.

nnmail.el (nnmail-get-new-mail-1): If one mail source bugs out, continue on and do the clean-up phase (bug#9188).
gnus-sum.el (gnus-summary-expire-articles): When expiring articles, just ignore groups that can't be opened instead of erroring out (bug#9225).
gnus-art.el (gnus-article-update-date-headers): Flip the default to nil since some many people are fuddy-duddies.
gnus-html.el (gnus-html-image-fetched): Don't cache zero-length images.

14 years ago(smtpmail-query-smtp-server): Allow `quit'-ing out in case the probe hangs.
Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 20:29:11 +0000 (22:29 +0200)]
(smtpmail-query-smtp-server): Allow `quit'-ing out in case the probe hangs.

14 years ago(smtpmail-try-auth-methods): Expand the secret password.
Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 20:10:29 +0000 (22:10 +0200)]
(smtpmail-try-auth-methods): Expand the secret password.

14 years agoOnly bind `coding-system-for-*' around the process open call to avoid auth-source...
Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 19:27:27 +0000 (21:27 +0200)]
Only bind `coding-system-for-*' around the process open call to avoid auth-source side effects.

14 years ago* lisp/term.el (term-mouse-paste): Yank primary selection (Bug#6845).
Chong Yidong [Sun, 21 Aug 2011 17:56:19 +0000 (13:56 -0400)]
* lisp/term.el (term-mouse-paste): Yank primary selection (Bug#6845).

14 years agoImprove Edebug error for attempting to instrument built-in functions.
Chong Yidong [Sun, 21 Aug 2011 17:43:31 +0000 (13:43 -0400)]
Improve Edebug error for attempting to instrument built-in functions.

* lisp/emacs-lisp/edebug.el (edebug-instrument-function): Use it to
signal an error for built-in functions.

* lisp/emacs-lisp/find-func.el (find-function-noselect): New arg
lisp-only.

14 years agoMerge changes made in Gnus trunk.
Gnus developers [Sun, 21 Aug 2011 09:39:07 +0000 (09:39 +0000)]
Merge changes made in Gnus trunk.

nntp.el (nntp-authinfo-file): Mark as obsolete -- use auth-source instead.
pop3.el (pop3-wait-for-messages): Don't use Gnus functions here.
gnus-util.el (gnus-process-live-p): Copy over compat function.
pop3.el (pop3-wait-for-messages): If the pop3 process dies, stop processing.
nntp.el (nntp-kill-buffer): Kill the process before killing the buffer to avoid warnings.
gnus-agent.el (gnus-agent-expire-done-message): Use %.f as format specified to reduce precision.

14 years agoIntroduce a new variable to allow controlling the SMTP user name
Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 04:11:59 +0000 (06:11 +0200)]
Introduce a new variable to allow controlling the SMTP user name

* mail/smtpmail.el (smtpmail-smtp-user): New variable.
(smtpmail-try-auth-methods): Use it.

14 years agoMinor fix to last change.
Chong Yidong [Sun, 21 Aug 2011 03:02:39 +0000 (23:02 -0400)]
Minor fix to last change.

14 years agoAdd some docstrings to font-lock.el.
Chong Yidong [Sun, 21 Aug 2011 03:00:52 +0000 (23:00 -0400)]
Add some docstrings to font-lock.el.

* font-lock.el (font-lock-fontify-region)
(font-lock-unfontify-region, font-lock-default-fontify-buffer)
(font-lock-default-unfontify-buffer)
(font-lock-default-fontify-region)
(font-lock-default-unfontify-region): Add docstrings (Bug#8624).

14 years agoFix to `ant' compile regexp.
Chong Yidong [Sun, 21 Aug 2011 02:24:07 +0000 (22:24 -0400)]
Fix to `ant' compile regexp.

* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
  Fix 2011-05-09 change to `ant' regexp.

14 years agoFix error in compilation-error-properties.
Chong Yidong [Sun, 21 Aug 2011 02:07:00 +0000 (22:07 -0400)]
Fix error in compilation-error-properties.

* lisp/progmodes/compile.el (compilation-error-properties): Fix
confusion between file struct and message struct (Bug#9319).

14 years agoFix for browse-url-firefox on Windows.
Chong Yidong [Sun, 21 Aug 2011 01:01:12 +0000 (21:01 -0400)]
Fix for browse-url-firefox on Windows.

* lisp/net/browse-url.el (browse-url-firefox): Don't call
browse-url-firefox-sentinel unless using -remote.

14 years ago* lisp/tutorial.el (help-with-tutorial): Avoid an error on short screens.
Glenn Morris [Sat, 20 Aug 2011 22:53:00 +0000 (15:53 -0700)]
* lisp/tutorial.el (help-with-tutorial): Avoid an error on short screens.

14 years agoUpdate some tutorial key bindings; ref bug#8739.
Glenn Morris [Sat, 20 Aug 2011 22:41:41 +0000 (15:41 -0700)]
Update some tutorial key bindings; ref bug#8739.

* lisp/tutorial.el (tutorial--default-keys): Update some default bindings.

* etc/NEWS: delete-forward-char is not bound to C-d.

* lisp/bindings.el, lisp/windows.el: Comments.

14 years ago* lisp/files.el (hack-local-variables): Fully ignore case for "mode:".
Glenn Morris [Sat, 20 Aug 2011 22:26:52 +0000 (15:26 -0700)]
* lisp/files.el (hack-local-variables): Fully ignore case for "mode:".

14 years agoAdd missing file to leim/Makefile.
Glenn Morris [Sat, 20 Aug 2011 22:19:53 +0000 (15:19 -0700)]
Add missing file to leim/Makefile.

* leim/Makefile.in (OTHERS):
* leim/makefile.w32-in (MISC): Add ipa-praat.elc.

14 years agoResolve invalid use of a regexp in regexp-opt.
Alan Mackenzie [Sat, 20 Aug 2011 22:04:33 +0000 (22:04 +0000)]
Resolve invalid use of a regexp in regexp-opt.

cc-fonts.el (c-complex-decl-matchers): Add in special detection for a
java annotation.

cc-engine.el (c-forward-decl-or-cast-1): Add in special detection for a
java annotation.

cc-langs.el (c-prefix-spec-kwds-re): Remove the special handling for
java.
(c-modifier-kwds): Remove the regexp "@[A-za-z0-9]+".

14 years agoResolve invalid use of a regexp in regexp-opt.
Alan Mackenzie [Sat, 20 Aug 2011 22:02:25 +0000 (22:02 +0000)]
Resolve invalid use of a regexp in regexp-opt.

cc-fonts.el (c-complex-decl-matchers): Add in special detection for a
java annotation.

cc-engine.el (c-forward-decl-or-cast-1): Add in special detection for a
java annotation.

cc-langs.el (c-prefix-spec-kwds-re): Remove the special handling for
java.
(c-modifier-kwds): Remove the regexp "@[A-za-z0-9]+".

14 years ago* eval.c (Fcondition_case): Document `debug' symbol in error handler.
Chong Yidong [Sat, 20 Aug 2011 21:22:46 +0000 (17:22 -0400)]
* eval.c (Fcondition_case): Document `debug' symbol in error handler.

14 years ago* src/eval.c (Fsignal): Handle `debug' symbol in error handler.
Chong Yidong [Sat, 20 Aug 2011 21:17:06 +0000 (17:17 -0400)]
* src/eval.c (Fsignal): Handle `debug' symbol in error handler.

14 years ago* startup.el (normal-top-level-add-subdirs-to-load-path): Doc fix (Bug#9274).
Chong Yidong [Sat, 20 Aug 2011 19:30:53 +0000 (15:30 -0400)]
* startup.el (normal-top-level-add-subdirs-to-load-path): Doc fix (Bug#9274).

14 years agoFontify CPP expressions correctly when starting in the middle of such a
Alan Mackenzie [Sat, 20 Aug 2011 15:23:04 +0000 (15:23 +0000)]
Fontify CPP expressions correctly when starting in the middle of such a
construct.  Mainly for when jit-lock etc. starts a chunk here.

cc-fonts.el (c-font-lock-context): new buffer local variable.
(c-make-font-lock-search-form): new function, extracted from
c-make-font-lock-search-function.
(c-make-font-lock-search-function): Use the above function.
(c-make-font-lock-context-search-function): New function.
(c-cpp-matchers): Enhance the preprocessor expression case with the above
function
(c-font-lock-complex-decl-prepare):  Test for being in a CPP form which
takes an expression.

cc-langs.el (c-cpp-expr-intro-re): New lang-variable.

14 years agoFontify CPP expressions correctly when starting in the middle of such a
Alan Mackenzie [Sat, 20 Aug 2011 14:54:21 +0000 (14:54 +0000)]
Fontify CPP expressions correctly when starting in the middle of such a
construct.  Mainly for when jit-lock etc. starts a chunk here.

cc-fonts.el (c-font-lock-context): new buffer local variable.
(c-make-font-lock-search-form): new function, extracted from
c-make-font-lock-search-function.
(c-make-font-lock-search-function): Use the above function.
(c-make-font-lock-context-search-function): New function.
(c-cpp-matchers): Enhance the preprocessor expression case with the above
function
(c-font-lock-complex-decl-prepare):  Test for being in a CPP form which
takes an expression.

cc-langs.el (c-cpp-expr-intro-re): New lang-variable.

14 years agoFontify CPP expressions correctly when starting in the middle of such a
Alan Mackenzie [Sat, 20 Aug 2011 14:43:33 +0000 (14:43 +0000)]
Fontify CPP expressions correctly when starting in the middle of such a
construct.  Mainly for when jit-lock etc. starts a chunk here.

cc-fonts.el (c-font-lock-context): new buffer local variable.
(c-make-font-lock-search-form): new function, extracted from
c-make-font-lock-search-function.
(c-make-font-lock-search-function): Use the above function.
(c-make-font-lock-context-search-function): New function.
(c-cpp-matchers): Enhance the preprocessor expression case with the above
function
(c-font-lock-complex-decl-prepare):  Test for being in a CPP form which
takes an expression.

cc-langs.el (c-cpp-expr-intro-re): New lang-variable.

14 years agoRemove some commented-out obsoletion declarations from window.el.
martin rudalics [Sat, 20 Aug 2011 10:10:05 +0000 (12:10 +0200)]
Remove some commented-out obsoletion declarations from window.el.

14 years agoWhen displaying a buffer don't use or split a side window unless explicitly requested.
martin rudalics [Sat, 20 Aug 2011 10:02:04 +0000 (12:02 +0200)]
When displaying a buffer don't use or split a side window unless explicitly requested.

* window.el (display-buffer-reuse-window)
(display-buffer-pop-up-window): Don't reuse or split a side
window.

14 years agolisp/gnus/ChangeLog: Fix last change.
Katsumi Yamaoka [Sat, 20 Aug 2011 00:27:04 +0000 (00:27 +0000)]
lisp/gnus/ChangeLog: Fix last change.

14 years agoMerge changes made in Gnus trunk.
Gnus developers [Sat, 20 Aug 2011 00:20:39 +0000 (00:20 +0000)]
Merge changes made in Gnus trunk.

nnimap.el (nnimap-transform-headers): Protect against (NIL ...) bodystructures (bug#9314).
starttls.el (starttls-any-program-available): Define as obsolete function.
gnus-util.el (gnus-y-or-n-p): Reinstate the message-clearing y-or-n-p versions which Gnus use when appropriate.
gnus-group.el (gnus-group-clear-data): Add a y-or-n query, since it's a pretty destructive command.
nnmail.el (nnmail-extra-headers): Clarify slightly (bug#9302).
message.el (message-fix-before-sending): Make a different warning about NUL characters (bug#9270).
gnus-sum.el (gnus-auto-select-subject): Allow specifying a function from custom (bug#9260).

14 years agofiles.el fix for bug#9331
Glenn Morris [Fri, 19 Aug 2011 18:23:09 +0000 (14:23 -0400)]
files.el fix for bug#9331

* lisp/files.el (hack-local-variables-prop-line, hack-local-variables):
Downcase "Mode:".

14 years agoMerge from trunk.
Paul Eggert [Fri, 19 Aug 2011 14:28:36 +0000 (07:28 -0700)]
Merge from trunk.

14 years agoAvoid a crash in mouse-highlight of Speedbar frames.
Eli Zaretskii [Fri, 19 Aug 2011 11:30:29 +0000 (14:30 +0300)]
Avoid a crash in mouse-highlight of Speedbar frames.

 src/xfaces.c (face_at_buffer_position): Avoid repeated evaluation of
 face ID by FACE_FROM_ID, and avoid a crash when mouse is moved
 from an Org mode buffer to a Speedbar frame.

14 years agoFix bidi cursor motion when a line begins with a composed character.
Eli Zaretskii [Fri, 19 Aug 2011 10:18:40 +0000 (13:18 +0300)]
Fix bidi cursor motion when a line begins with a composed character.

 src/xdisp.c (RECORD_MAX_MIN_POS): If the display element comes from
 a composition, take its buffer position from IT->cmp_it.charpos.

14 years agognus-art.el (gnus-insert-mime-button, gnus-mime-display-alternative): Make button...
Katsumi Yamaoka [Fri, 19 Aug 2011 08:52:18 +0000 (08:52 +0000)]
gnus-art.el (gnus-insert-mime-button, gnus-mime-display-alternative): Make button keymap non-sticky after buttons.

14 years ago* bidi.c (bidi_cache_shrink): update size after realloc
Paul Eggert [Fri, 19 Aug 2011 06:58:42 +0000 (23:58 -0700)]
* bidi.c (bidi_cache_shrink): update size after realloc

14 years agoFix comment.
Paul Eggert [Fri, 19 Aug 2011 06:11:38 +0000 (23:11 -0700)]
Fix comment.

14 years agoMerge from trunk.
Paul Eggert [Fri, 19 Aug 2011 05:47:45 +0000 (22:47 -0700)]
Merge from trunk.

14 years agoAdapt themes to new error/warning/success faces.
Chong Yidong [Fri, 19 Aug 2011 00:12:45 +0000 (20:12 -0400)]
Adapt themes to new error/warning/success faces.

* etc/themes/dichromacy-theme.el:
* etc/themes/wheatgrass-theme.el:
* etc/themes/tango-theme.el:
* etc/themes/tango-dark-theme.el: Add error, warning, and success faces.

14 years agoMerge changes made in Gnus trunk.
Gnus developers [Thu, 18 Aug 2011 22:12:47 +0000 (22:12 +0000)]
Merge changes made in Gnus trunk.

nnmairix.el (nnmairix-request-set-mark, nnmairix-goto-original-article): Remove adding of article to registry, since `gnus-registry-add-group' isn't available anymore.
 (nnmairix-determine-original-group-from-registry): Use `gnus-registry-get-id-key' since `gnus-registry-fetch-groups' isn't available anymore.
gnus-spec.el (gnus-lrm-string): Use 8206 instead of ?\x200e to make things work in Emacs 22 and XEmacs, too.
gnus-sum.el (gnus-summary-from-or-to-or-newsgroups): LRM-ify the default From.
gnus-spec.el (gnus-lrm-string-p): New macro.
 (gnus-lrm-string): New constant.
 (gnus-summary-line-format-spec): LRM-ify the from.
 (gnus-tilde-max-form): LRM-ify string chopping.
gnus-ems.el (gnus-string-mark-left-to-right): New function.

14 years agoStandardize/fix some Org header comments.
Glenn Morris [Thu, 18 Aug 2011 20:57:10 +0000 (16:57 -0400)]
Standardize/fix some Org header comments.

* org-freemind.el: Remove duplicate, incorrect license notice.

* ob-lisp.el: Convert consecutive copyright years to ranges.

* ob-js.el, ob-scheme.el: Standardize license text.

* ob-R.el, ob-clojure.el, ob-exp.el, ob-lisp.el, ob-lob.el, ob-perl.el:
* ob-python.el, ob-ref.el, ob.el:
Put multiple authors on separate lines.

14 years agoRestore clobbered changes to Org copyright years.
Glenn Morris [Thu, 18 Aug 2011 20:41:06 +0000 (16:41 -0400)]
Restore clobbered changes to Org copyright years.

14 years agoProtect the bidi iterator against zero bidi properties.
Eli Zaretskii [Thu, 18 Aug 2011 18:46:02 +0000 (21:46 +0300)]
Protect the bidi iterator against zero bidi properties.

 src/bidi.c (bidi_get_type): If bidi_type_table reports zero as the
 character bidirectional type, use STRONG_L instead.  Fixes crashes
 in a buffer produced by `describe-categories'.

14 years agoMerge from trunk.
Paul Eggert [Thu, 18 Aug 2011 17:01:52 +0000 (10:01 -0700)]
Merge from trunk.

14 years agoRename string-mark-left-to-right to bidi-string-mark-left-to-right in the manual.
Eli Zaretskii [Thu, 18 Aug 2011 16:27:59 +0000 (19:27 +0300)]
Rename string-mark-left-to-right to bidi-string-mark-left-to-right in the manual.

14 years agoFix bidi reordering around TAB characters covered by display properties.
Eli Zaretskii [Thu, 18 Aug 2011 16:09:40 +0000 (19:09 +0300)]
Fix bidi reordering around TAB characters covered by display properties.

 src/dispextern.h (struct bidi_it): Move disp_pos and disp_prop_p
 members before the level stack, so they would be saved and
 restored when copying iterator state.  Fixes incorrect reordering
 around TABs covered by display properties.

14 years agoAdd L and R categories to standard category table, and use them.
Chong Yidong [Thu, 18 Aug 2011 15:53:29 +0000 (11:53 -0400)]
Add L and R categories to standard category table, and use them.

* lisp/international/characters.el: Add L and R categories.

* lisp/subr.el (bidi-string-mark-left-to-right): Rename from
string-mark-left-to-right.  Use category search.

* lisp/buff-menu.el (Buffer-menu-buffer+size): Callers changed.

14 years ago* src/process.c (Fnetwork_interface_list): Correctly determine buffer
Andreas Schwab [Thu, 18 Aug 2011 15:33:22 +0000 (17:33 +0200)]
* src/process.c (Fnetwork_interface_list): Correctly determine buffer
size.

14 years ago* lisp/faces.el (error, warning, success): New faces with definitions
Juri Linkov [Thu, 18 Aug 2011 11:36:19 +0000 (14:36 +0300)]
* lisp/faces.el (error, warning, success): New faces with definitions
copied from old default values of `font-lock-warning-face',
`compilation-warning', `compilation-info'.

* lisp/font-lock.el (font-lock-warning-face): Inherit from `error'.

* lisp/progmodes/compile.el (compilation-error): Inherit from `error'.
(compilation-warning): Inherit from `warning'.
(compilation-info): Inherit from `success'.

* lisp/dired.el (dired-marked): Inherit from `warning'.
(dired-flagged): Inherit from `error'.

14 years agoImprove documentation of bidi in ELisp manual.
Eli Zaretskii [Thu, 18 Aug 2011 10:53:55 +0000 (13:53 +0300)]
Improve documentation of bidi in ELisp manual.

 doc/lispref/nonascii.texi (Character Properties): Document use of
 `bidi-class' and `mirroring' properties as part of reordering.
 Provide cross-references to "Bidirectional Display".
 doc/lispref/display.texi (Bidirectional Display): Document the pitfalls of
 concatenating strings with bidirectional content, with possible
 solutions.  Document string-mark-left-to-right.  Mention paragraph
 direction in modes that inherit from prog-mode.  Document use of
 `bidi-class' and `mirroring' properties as part of reordering.
 etc/NEWS: Mark string-mark-left-to-right as documented.

14 years agoMerge from trunk.
Paul Eggert [Thu, 18 Aug 2011 08:41:19 +0000 (01:41 -0700)]
Merge from trunk.

14 years ago* doc.c (get_doc_string): Rework so that
Paul Eggert [Thu, 18 Aug 2011 08:37:41 +0000 (01:37 -0700)]
* doc.c (get_doc_string): Rework so that

get_doc_string_buffer_size is the actual buffer size, rather than
being 1 less than the actual buffer size; this makes xpalloc more
convenient.

14 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Wed, 17 Aug 2011 22:09:19 +0000 (22:09 +0000)]
Merge changes made in Gnus trunk.

message.el (message-is-yours-p): Allow disabling canlock checking (bug#9295).
 (message-shoot-gnksa-feet): Add `canlock-verify'.
 (message-auto-save-directory): Use ~/ as the auto-save directory if the message directory isn't writable (bug#9304).
auth-source.el (auth-source-netrc-saver): Make the .authinfo file non-world-readable.

14 years ago(auth-source): Require to avoid problems with binding variables.
Lars Magne Ingebrigtsen [Wed, 17 Aug 2011 22:02:49 +0000 (00:02 +0200)]
(auth-source): Require to avoid problems with binding variables.

Also clean up some unused autoloads.

14 years agoRemove aborts from internal_condition_case*.
Chong Yidong [Wed, 17 Aug 2011 21:40:13 +0000 (17:40 -0400)]
Remove aborts from internal_condition_case*.

* src/eval.c (internal_condition_case, internal_condition_case_1)
(internal_condition_case_2, internal_condition_case_n): Remove
unnecessary aborts.

14 years ago(network-stream-open-starttls): Support using starttls.el without using gnutls-cli.
Lars Magne Ingebrigtsen [Wed, 17 Aug 2011 20:50:33 +0000 (22:50 +0200)]
(network-stream-open-starttls): Support using starttls.el without using gnutls-cli.

14 years ago* lisp/progmodes/grep.el (rgrep): Handle the case when `grep-find-command'
Juri Linkov [Wed, 17 Aug 2011 17:11:49 +0000 (20:11 +0300)]
* lisp/progmodes/grep.el (rgrep): Handle the case when `grep-find-command'
is a cons cell.

14 years agoFix bug #9311 with loading on MS-Windows .elc files in root directories.
Eli Zaretskii [Wed, 17 Aug 2011 08:50:08 +0000 (11:50 +0300)]
Fix bug #9311 with loading on MS-Windows .elc files in root directories.

 src/lread.c (Fload) [DOS_NT]: If `openp' returns -2, but the file
 has no `load' handler, try opening the file locally.

14 years agoIn display-buffer-pop-up-frame make frame with buffer to display current.
martin rudalics [Wed, 17 Aug 2011 06:50:31 +0000 (08:50 +0200)]
In display-buffer-pop-up-frame make frame with buffer to display current.

* window.el (display-buffer-pop-up-frame): Run frame creation
function with BUFFER current (as special-display-popup-frame
does).  Reported by Drew Adams.

14 years agoSimplify GnuPG group expansion using epg-expand-group.
Daiki Ueno [Wed, 17 Aug 2011 01:31:05 +0000 (10:31 +0900)]
Simplify GnuPG group expansion using epg-expand-group.

* epa-mail.el: Simplify GnuPG group expansion using
epg-expand-group.
(epa-mail-group-alist, epa-mail-group-modtime)
(epa-mail-gnupg-conf-file, epa-mail-parse-groups)
(epa-mail-sync-groups, epa-mail-expand-recipient-1)
(epa-mail-expand-recipients-2, epa-mail-expand-recipients):
Remove.

14 years agonndraft.el (nndraft-update-unread-articles): Don't send delayed articles.
Katsumi Yamaoka [Wed, 17 Aug 2011 00:10:46 +0000 (00:10 +0000)]
nndraft.el (nndraft-update-unread-articles): Don't send delayed articles.

14 years ago* calc/calc-ext.el (math-defintegral-2): Remove nested backquote.
Feng Li [Tue, 16 Aug 2011 22:33:57 +0000 (17:33 -0500)]
* calc/calc-ext.el (math-defintegral-2): Remove nested backquote.

14 years ago* src/gmalloc.c: Expand comment.
Ken Brown [Tue, 16 Aug 2011 20:31:32 +0000 (16:31 -0400)]
* src/gmalloc.c: Expand comment.